package com.lh.web.dao.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.common.entity.admin.BannerShop;
import com.lh.common.entity.admin.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ShopMapper extends BaseMapper<Shop> {

    List<Shop> queryShopList(Map<String, Object> param);

    List<BannerShop> getBannerShopList(Map<String, Object> param);

    Shop getShopDetail(Long shopId);

    Shop getCategoryName(String shopName);

    Shop updateShop(Shop shop);

    int updateShopStatus(Map<String,Object> params);

    int queryActivityShop(Long sid);

    int queryShop(Long sid);

    int saveShop(Shop shop);

    int deleteShopSortRef(Long shopId);

    int deleteShopColumnRef(Long shopId);

    int addShopSortRef(@Param("shopId")Long shopId,@Param("sortId")Long sortId);

    Map querySortName(String sortId);

    int deleteShop(Long shopId);

}
